package com.itheima_03;

public class StudentTwo {

    private String name;

    private int age;

    // 构造函数
    public StudentTwo() {}

    public StudentTwo(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName(String name) {
        return this.name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return this.age;
    }

    public void show() {
        System.out.println(this.name + ',' + this.age);
    }
}
